<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/oversea.js"></script>
<title>发货计划</title>
<body class="withvernav">
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
  <div class="centercontent">
    <div class="pageheader notab">
      <h1 class="pagetitle">编辑发货计划</h1>
      <span class="pagedesc"></span>
      <div class="menulist">
        <ul class="profile_summary">
          <li class="current"></li>
        </ul>
      </div>
    </div>
    <!--pageheader-->
    
    <div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent">
        <form class="stdform stdform2"  id="theFrom" enctype="multipart/form-data"  method="post" action="/oversea/savedelivery">
          <p>
            <label>运输编号</label>
            <span class="field"> {{$detail.groupid}} </span> </p>
          {{if $detail.carrier}}
          <p>
            <label>承运人</label>
            <span class="field">
             <select class="selection" id="carrier" name="carrier">
                <option value="">--请选择--</option>
                
						     	 {{foreach from=$carrierlist item=li key=key}}
					    			
                <option value="{{$li}}" {{if $detail.carrier==$li}} selected{{/if}}>{{$li}}</option>
                
					  	     	{{/foreach}}
					    			
					  	     	
							
              </select>
             </span> </p>
          {{/if}}
          <p>
            <label>运输方式 </label>
            <span class="field">
            <select class="selection" id="transportmode" name="transportmode"  style="width:200px;">
                    <option value="">-请选择-</option>
             {{foreach from=$transportmodelist item=li key=key}}
                <option value="{{$li}}" {{if $detail.transportmode==$li}} selected{{/if}}>{{$li}}</option>
            {{/foreach}}
                </select>
            <span id=showerr></span>
            </span> </p>
            
          {{if $detail.projectdate}}
          <p>
            <label>发货时间 </label>
            <span class="field"> {{$detail.projectdate}} </span> </p>
          {{/if}}
          {{if $detail.shopname}}
          <p>
            <label>店铺</label>
            <span class="field"> {{$detail.shopname}} </span> </p>
          {{/if}}
          <p>
            <label>始发地</label>
            <span class="field"> {{$detail.startingplace}} </span> </p>
          <p>
            <label>目的地</label>
            <span class="field"> {{$detail.destination}} </span> </p>
          
            <p id="idbiaoqian" {{if $showfile==1}}{{else}}style="display:none"{{/if}}>
                        	<label><font color="#FF0000">重新上传FBA标签 *</font></label>
  					<span class="field"><input type="file" id="upfiles" name="upfiles"><span id=carriershowerr></span></span>
                           
                        </p>
          <div class="contenttitle2">
            <h3>计划发货清单</h3>
          </div>
          <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <colgroup>
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            </colgroup>
            <thead>
              <tr>
                <th class="head0">SKU</th>
                <th class="head1">商品名称</th>
                <th class="head0">重量 KG</th>
                <th class="head1">体积 CBM</th>
                <th class="head0">长 CM</th>
                <th class="head0">宽 CM</th>
                <th class="head0">高 CM</th>
                <th class="head0">成本价</th>
                <th class="head0">发货数</th>
                <th class="head0">价格</th>
              </tr>
            </thead>
            <tbody>
            
            {{foreach from=$goodsdata item=li key=key}}
            <tr {{if $li.st==1}}bgcolor="#FFD2D2" title="带商标商品"{{/if}}>
              <td>{{$li.sku}}
                <input type="hidden" name="goodslist[sku][]" value="{{$li.sku}}"></td>
              <td>{{$li.name}}</td>
              <td>{{$li.weight}}</td>
              <td class="center">{{$li.volumenum}}</td>
              <td class="center">{{$li.lengthnum}}</td>
              <td class="center">{{$li.widthnum}}</td>
              <td class="center">{{$li.heightnum}}</td>
              <td class="center">{{$li.costprice}}
                <input type="hidden" name="goodslist[costprice][]" value="{{$li.costprice}}"></td>
              <td class="center">
                <input type="text" name="goodslist[sendnums][]" class="width100" value="{{$li.sendnums}}"></td>
              <td class="center">{{$li.totalprice}}</td>
            </tr>
            {{/foreach}}
              </tbody>
            
          </table>
           
          <p class="stdformbutton"> <span >
            <input type="hidden" name="groupid" value="{{$detail.groupid}}">
            <input type="hidden" name="detail" value='{{$detail.detaillist}}'>
            <input type="hidden" name="transportationplanning_id" value="{{$detail.id}}">
            
            <!-- <button type="submit" class="submit radius2" id="btn" >编辑</button>--> 
            <button type="submit" class="submit radius2" id="btn" onClick="purchasingNext()">保存</button></span> </p>
        </form>
        <br />
      </div>
      <!--subcontent--> 
      
      <!--subcontent--> 
      
    </div>
    <!--contentwrapper--> 
    
  </div>
  <!-- centercontent --> 
  
</div>
<!--bodywrapper-->

</body>
</html>